var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.forceCompleteQuest(65463);
            cm.forceStartQuest(501015, "");
            cm.forceCompleteQuest(501015);
            cm.forceCompleteQuest(52401);
            cm.teachSkill(80011957, 1, 1);
            cm.teachSkill(5081023, -1, 0);
            cm.teachSkill(5080022, -1, 0);
            cm.teachSkill(5081003, -1, 0);
            cm.teachSkill(5081002, -1, 0);
            cm.teachSkill(5081020, -1, 0);
            cm.dispose();
            cm.warp(743030000, 0, false)
        }
    }
};